package a.g;

import a.f.m.a;
import a.h.cc;
import a.h.dc;
import a.h.z;

import java.awt.*;

public class q
  extends h
{
  private boolean q = false;
  private static final String r = "TRANSLATE_X";
  private static final String s = "TRANSLATE_Y";
  private static final String t = "SCALE_FACTOR";
  private static final String u = "ACT_ON_SELECTION_ONLY";
  private static final String v = "SCALE_NODE_SIZE";
  private static final String w = "APPLY_BEST_FIT_ROTATION";
  private static final String x = "ROTATION_ANGLE";
  private static final String y = "OPERATION";
  private static final String z = "GRAPH_TRANSFORMER";
  private static final String A = "TRANSLATE";
  private static final String B = "SCALE";
  private static final String C = "ROTATE";
  private static final String D = "MIRROR_ON_Y-AXIS";
  private static final String E = "MIRROR_ON_X-AXIS";
  private a F = new a();
  private static String[] G = { "MIRROR_ON_X-AXIS", "MIRROR_ON_Y-AXIS", "ROTATE", "SCALE", "TRANSLATE" };
  public static boolean H;
  
  public q()
  {
    super("GRAPH_TRANSFORMER", "Roland Wiese", "Mirrors or rotates a (sub-)graph");
  }
  
  public dc j()
  {
    dc localdc = new dc(a());
    localdc.a("OPERATION", G, this.F.s());
    z localz = new z(localdc);
    localdc.a("ACT_ON_SELECTION_ONLY", false);
    cc localcc = new cc();
    localz.a("OPERATION", "ROTATE", localcc);
    localcc.a("OptionGroup.title", "ROTATE");
    localcc.a(localdc.a("ROTATION_ANGLE", (int)this.F.t(), -360, 360));
    localcc.a(localdc.a("APPLY_BEST_FIT_ROTATION", this.q));
    localcc = new cc();
    localz.a("OPERATION", "SCALE", localcc);
    localcc.a("OptionGroup.title", "SCALE");
    localcc.a(localdc.a("SCALE_FACTOR", this.F.x(), 0.1D, 10.0D));
    localcc.a(localdc.a("SCALE_NODE_SIZE", this.F.v()));
    localcc = new cc();
    localz.a("OPERATION", "TRANSLATE", localcc);
    localcc.a("OptionGroup.title", "TRANSLATE");
    localcc.a(localdc.a("TRANSLATE_X", this.F.y()));
    localcc.a(localdc.a("TRANSLATE_Y", this.F.z()));
    return localdc;
  }
  
  public void n()
  {
    int i = f.p;
    dc localdc = i();
    this.F.a(localdc.i("OPERATION"));
    this.F.a(localdc.e("ROTATION_ANGLE"));
    this.F.b(localdc.f("SCALE_FACTOR"));
    this.F.i(localdc.g("SCALE_NODE_SIZE"));
    this.F.c(localdc.f("TRANSLATE_X"));
    this.F.d(localdc.f("TRANSLATE_Y"));
    if (i == 0)
    {
      this.F.g(localdc.g("ACT_ON_SELECTION_ONLY"));
      if ((localdc.g("APPLY_BEST_FIT_ROTATION")) && (localdc.j("OPERATION").equals("ROTATE")))
      {
        if (i != 0) {
          break label187;
        }
        if (g() != null)
        {
          this.q = true;
          Dimension localDimension = g().getSize();
          this.F.a(a.b(e(), localDimension.width, localDimension.height));
          if (i != 0) {
            return;
          }
          if (!f.o) {
            break label191;
          }
        }
      }
    }
    label187:
    this.q = false;
    label191:
    a(this.F);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.q

 * JD-Core Version:    0.7.0.1

 */